<?php
namespace Admin\Controller;

class FoodController extends CommonController{

    public function index(){
        $where = array();
        $where['uid'] = I('get.uid');
        if(I('get.keywords')){
            $where['create_date'] = I('get.keywords');
        }
        $dataPage = D($this->controller)->getPager($where);
        $this->assign('list',$dataPage['data']);
        $this->assign('page',$dataPage['page']);
        $this->display();
    }

}